<h2>${HeaderLibrarySettings}</h2>
<div class="checkboxContainer checkboxContainer-withDescription chkEnabledContainer">
    <label>
        <input type="checkbox" is="emby-checkbox" class="chkEnabled" checked />
        <span>${EnableLibrary}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${EnableLibraryHelp}</div>
</div>

<div class="selectContainer fldMetadataLanguage hide">
    <select is="emby-select" id="selectLanguage" label="${LabelMetadataDownloadLanguage}"></select>
</div>
<div class="selectContainer fldMetadataCountry hide">
    <select is="emby-select" id="selectCountry" label="${LabelCountry}"></select>
</div>
<div class="checkboxContainer checkboxContainer-withDescription chkEnablePhotosContainer">
    <label>
        <input type="checkbox" is="emby-checkbox" class="chkEnablePhotos" checked />
        <span>${EnablePhotos}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${EnablePhotosHelp}</div>
</div>

<div class="inputContainer fldSeasonZeroDisplayName hide advanced">
    <input is="emby-input" type="text" id="txtSeasonZeroName" label="${LabelSpecialSeasonsDisplayName}" value="Specials" required />
</div>
<div class="checkboxContainer checkboxContainer-withDescription chkEnableEmbeddedTitlesContainer hide advanced">
    <label>
        <input is="emby-checkbox" type="checkbox" id="chkEnableEmbeddedTitles" />
        <span>${PreferEmbeddedTitlesOverFileNames}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${PreferEmbeddedTitlesOverFileNamesHelp}</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription chkEnableEmbeddedExtrasTitlesContainer hide advanced">
    <label>
        <input is="emby-checkbox" type="checkbox" id="chkEnableEmbeddedExtrasTitles" />
        <span>${PreferEmbeddedExtrasTitlesOverFileNames}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${PreferEmbeddedExtrasTitlesOverFileNamesHelp}</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription chkEnableEmbeddedEpisodeInfosContainer hide advanced">
    <label>
        <input is="emby-checkbox" type="checkbox" id="chkEnableEmbeddedEpisodeInfos" />
        <span>${PreferEmbeddedEpisodeInfosOverFileNames}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${PreferEmbeddedEpisodeInfosOverFileNamesHelp}</div>
</div>
<div class="selectContainer fldAllowEmbeddedSubtitlesContainer hide advanced" style="margin: 2em 0;">
    <select is="emby-select" id="selectAllowEmbeddedSubtitles" label="${AllowEmbeddedSubtitles}">
        <option value="AllowAll">${AllowEmbeddedSubtitlesAllowAllOption}</option>
        <option value="AllowText">${AllowEmbeddedSubtitlesAllowTextOption}</option>
        <option value="AllowImage">${AllowEmbeddedSubtitlesAllowImageOption}</option>
        <option value="AllowNone">${AllowEmbeddedSubtitlesAllowNoneOption}</option>
    </select>
    <div class="fieldDescription">${AllowEmbeddedSubtitlesHelp}</div>
</div>

<div class="checkboxContainer checkboxContainer-withDescription advanced">
    <label>
        <input type="checkbox" is="emby-checkbox" class="chkEnableRealtimeMonitor" checked />
        <span>${LabelEnableRealtimeMonitor}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${LabelEnableRealtimeMonitorHelp}</div>
</div>

<div class="checkboxContainer checkboxContainer-withDescription chkEnableLUFSScanContainer advanced">
    <label>
        <input type="checkbox" is="emby-checkbox" class="chkEnableLUFSScan" checked />
        <span>${LabelEnableLUFSScan}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${LabelEnableLUFSScanHelp}</div>
</div>

<div class="checkboxContainer checkboxContainer-withDescription chkAutomaticallyAddToCollectionContainer hide advanced">
    <label>
        <input is="emby-checkbox" type="checkbox" id="chkAutomaticallyAddToCollection" />
        <span>${LabelAutomaticallyAddToCollection}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${LabelAutomaticallyAddToCollectionHelp}</div>
</div>

<div class="metadataReaders hide advanced" style="margin-bottom: 2em;">
</div>

<div class="metadataFetchers hide" style="margin-bottom: 2em;">
</div>

<div class="selectContainer fldAutoRefreshInterval hide advanced" style="margin: 2em 0;">
    <select is="emby-select" id="selectAutoRefreshInterval" label="${LabelAutomaticallyRefreshInternetMetadataEvery}"></select>
    <div class="fieldDescription">${MessageEnablingOptionLongerScans}</div>
</div>

<div class="metadataSavers hide" style="margin-bottom: 2em;">
</div>

<div class="imageFetchers hide advanced" style="margin-bottom: 2em;">
</div>

<div class="checkboxContainer checkboxContainer-withDescription chkSaveLocalContainer hide">
    <label>
        <input is="emby-checkbox" type="checkbox" id="chkSaveLocal" />
        <span>${LabelSaveLocalMetadata}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${LabelSaveLocalMetadataHelp}</div>
</div>

<div class="checkboxContainer checkboxContainer-withDescription chkAutomaticallyGroupSeriesContainer hide advanced">
    <label>
        <input type="checkbox" is="emby-checkbox" class="chkAutomaticallyGroupSeries" />
        <span>${OptionAutomaticallyGroupSeries}</span>
    </label>
    <div class="fieldDescription checkboxFieldDescription">${OptionAutomaticallyGroupSeriesHelp}</div>
</div>

<div class="trickplaySettingsSection hide">
    <h2>${Trickplay}</h2>
    <div class="checkboxContainer checkboxContainer-withDescription fldExtractTrickplayImages">
        <label>
            <input type="checkbox" is="emby-checkbox" class="chkExtractTrickplayImages" />
            <span>${OptionExtractTrickplayImage}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${ExtractTrickplayImagesHelp}</div>
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription fldExtractTrickplayDuringLibraryScan advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" class="chkExtractTrickplayDuringLibraryScan" />
            <span>${LabelExtractTrickplayDuringLibraryScan}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${LabelExtractTrickplayDuringLibraryScanHelp}</div>
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription fldSaveTrickplayLocally advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" class="chkSaveTrickplayLocally" />
            <span>${LabelSaveTrickplayLocally}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${LabelSaveTrickplayLocallyHelp}</div>
    </div>
</div>

<div class="chapterSettingsSection hide">
    <h2>${HeaderChapterImages}</h2>
    <div class="checkboxContainer checkboxContainer-withDescription fldExtractChapterImages">
        <label>
            <input type="checkbox" is="emby-checkbox" class="chkExtractChapterImages" />
            <span>${OptionExtractChapterImage}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${ExtractChapterImagesHelp}</div>
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription fldExtractChaptersDuringLibraryScan advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" class="chkExtractChaptersDuringLibraryScan" />
            <span>${LabelExtractChaptersDuringLibraryScan}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${LabelExtractChaptersDuringLibraryScanHelp}</div>
    </div>
</div>

<div class="subtitleDownloadSettings hide">
    <h2>${HeaderSubtitleDownloads}</h2>

    <div>
        <h3 class="checkboxListLabel">${LabelDownloadLanguages}</h3>
        <div class="subtitleDownloadLanguages paperList checkboxList" style="max-height: 10.5em; overflow-y: auto; padding: .5em 1em;">
        </div>
    </div>
    <br />

    <div class="subtitleFetchers advanced" style="margin-bottom: 2em;">
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription">
        <label>
            <input is="emby-checkbox" type="checkbox" id="chkRequirePerfectMatch" checked />
            <span>${OptionRequirePerfectSubtitleMatch}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${OptionRequirePerfectSubtitleMatchHelp}</div>
    </div>
    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input is="emby-checkbox" type="checkbox" id="chkSkipIfAudioTrackPresent" />
            <span>${LabelSkipIfAudioTrackPresent}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${LabelSkipIfAudioTrackPresentHelp}</div>
    </div>
    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input is="emby-checkbox" type="checkbox" id="chkSkipIfGraphicalSubsPresent" />
            <span>${LabelSkipIfGraphicalSubsPresent}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${LabelSkipIfGraphicalSubsPresentHelp}</div>
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" id="chkSaveSubtitlesLocally" checked />
            <span>${SaveSubtitlesIntoMediaFolders}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${SaveSubtitlesIntoMediaFoldersHelp}</div>
    </div>
</div>

<div class="lyricSettingsSection hide">
    <h2>${Lyrics}</h2>

    <div class="lyricFetchers advanced" style="margin-bottom: 2em;">
    </div>

    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" id="chkSaveLyricsLocally" />
            <span>${SaveLyricsIntoMediaFolders}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${SaveLyricsIntoMediaFoldersHelp}</div>
    </div>
</div>

<div class="audioTagSettingsSection hide">
    <h2>${LabelAudioTagSettings}</h2>
    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" id="chkPreferNonstandardArtistsTag" />
            <span>${PreferNonstandardArtistsTag}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${PreferNonstandardArtistsTagHelp}</div>
    </div>
    <div class="checkboxContainer checkboxContainer-withDescription advanced">
        <label>
            <input type="checkbox" is="emby-checkbox" id="chkUseCustomTagDelimiters" />
            <span>${UseCustomTagDelimiters}</span>
        </label>
        <div class="fieldDescription checkboxFieldDescription">${UseCustomTagDelimitersHelp}</div>
    </div>
    <div class="inputContainer">
        <input type="text" is="emby-input" id="customTagDelimitersInput" label="${LabelCustomTagDelimiters}" value="/|;\"/>
        <div class="fieldDescription">${LabelCustomTagDelimitersHelp}</div>
    </div>
    <div class="inputContainer">
        <textarea is="emby-textarea" id="tagDelimiterWhitelist" label="${LabelDelimiterWhitelist}" class="textarea-mono" style="resize: none;min-height:2.5em"></textarea>
        <div class="fieldDescription">${LabelDelimiterWhitelistHelp}</div>
    </div>
</div>
